#ifndef TWINDOW_H
#define TWINDOW_H
#include <QMainWindow>
#include <qwt_plot.h>
#include "transaction.h"
#include "transplot.h"
#include "TransAnalysis.h"


class TWindow : public QMainWindow
{
public:
    TWindow();
    virtual ~TWindow();
    void addTransaction(const Transaction& transaction);
    TransPack<TWindow> pack;

    bool getLock() { return m_TransPlot.getLock(); }
    void Lock() { m_TransPlot.Lock(); }
    void unLock() { m_TransPlot.unLock(); }
private:
    TransPlot m_TransPlot;

};

#endif // TWINDOW_H
